package com.example.fx.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.example.base.entity.HistoryEntity

/***
 * 历史记录Dao
 */
@Dao
interface HistoryDao {
    //保存记录
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(historyEntity: HistoryEntity)
    //展示记录
    @Query("select * from history")
    fun query():List<HistoryEntity>
}